<?php
class Application_Form_EditMaterial extends Zend_Form
{

	public function init()
	{
		$this->setName('editmaterial');
		$tenhoa = new Zend_Form_Element_Text('tenhoa');
		$tenhoa->setLabel('Tên hoa :')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('StringTrim');

		$dongia = new Zend_Form_Element_Text('dongia');
		$dongia->setLabel('Đơn giá :')
		->setRequired(true)
		->addFilter('StripTags')
		->addFilter('Int')
		->addValidator('Digits');



		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton');
		$reset = new Zend_Form_Element_Reset('reset');

		$this->addElements(array($tenhoa, $dongia,$reset, $submit));
	}
}